package com.zhl.springboot_zipkin_study_web.controller;

import com.alibaba.fastjson.JSONArray;
import com.zhl.springboot_zipkin_study_service_api.service.UserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {


    @Autowired
    UserinfoService userinfoService;

    @RequestMapping("")
    public String index(){
        return JSONArray.toJSONString(userinfoService.findall("真厉害"));
    }

    @RequestMapping("a")
    public String a(){
        return JSONArray.toJSONString(userinfoService.findall("真厉害"));
    }
    @RequestMapping("b")
    public String b(){
        return JSONArray.toJSONString(userinfoService.findall("真厉害"));
    }
}
